/**
 * @description 基础模块的一些接口api
 * @author yinzhi
 * @date 2025-03-04
 */

import { http } from '@/uni_modules/uview-plus'

// 登录
export const loginApi = data => http.post('/app/user/auth/getOpenPhone/login', data)
// 根据酒店ID查询酒店详情
export const getHotelBaseInfoApi = data => http.post('/app/user/hotelBaseInfo/get/detail', data)
// 查询默认酒店详情基本信息(未传ID查询默认)
export const getDefaultHotelBaseInfo = data =>
    http.post('/app/user/hotelBaseInfo/getById/detail', data)
// 获取用户信息
export const getUserInfo = () => http.post('/app/user/auth/getUserInfo')
// 编辑用户信息
export const updateUserInfo = data => http.post('/app/user/auth/update/userInfo', data)
// 获取首页消息通知
export const getHomeMsgApi = data => http.post('/app/user/hotelBaseInfo/get/notice', data)
// 获取分类图片列表
export const getImageListApi = data => http.post('/app/user/image/get/imageListByTwoCategory', data)
// 根据酒店ID获取分类列表
export const getCategoryListApi = data => http.post('/app/user/image/get/categoryList', data)
